-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add task solution #4450
base: master
Are you sure you want to change the base?
add task solution #4450
Conversation
OleksandrHaman
commented
Jun 17, 2024
- DEMO LINK
- TEST REPORT LINK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Added a few comments to fix tests
src/styles/header.scss
Outdated
|
||
body { | ||
margin: 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider moving general styles to a separate file
src/styles/product-card.scss
Outdated
height: $imageHeight; | ||
align-items: center; | ||
margin-bottom: 40px; | ||
padding-left: 3px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
padding-left: 3px; | |
margin-right: auto; | |
margin-left: auto; |
src/styles/product-card.scss
Outdated
transition: all $transitionTime; | ||
|
||
&__title { | ||
margin: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
margin: 0; |
src/styles/product-card.scss
Outdated
font-weight: 500; | ||
font-size: 12px; | ||
line-height: 18px; | ||
margin-bottom: 4px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
margin-bottom: 4px; | |
margin: 0 0 5px; |
src/styles/product-card.scss
Outdated
} | ||
|
||
&__code { | ||
margin: 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
margin: 0; |
src/styles/product-card.scss
Outdated
font-weight: 400; | ||
font-size: 10px; | ||
color: #616070; | ||
margin-bottom: 16px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
margin-bottom: 16px; | |
margin: 0 0 17px;; |
src/styles/product-card.scss
Outdated
|
||
&:hover { | ||
border: $headerColor solid 1px; | ||
background-color: #fff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using variables for repeating colors
src/styles/product-card.scss
Outdated
font-family: $mainFont; | ||
font-size: 14px; | ||
border-style: none; | ||
width: 166px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
width: 166px; | |
width: 100%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Almost done!
src/styles/index.scss
Outdated
html { | ||
font-family: Roboto, sans-serif; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move general styles to a separate file
} | ||
} | ||
|
||
.product-card { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move card styles to a separate file
src/styles/product-card.scss
Outdated
width: $imageWidth; | ||
height: $imageHeight; | ||
align-items: center; | ||
margin-bottom: 40px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
margin-bottom: 40px; | |
margin: 0 auto 40px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're making excellent progress!